package study.apm.arthas.service;

import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.StrUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class CmdService {

    public void sleep(long millis) {
        log.info(">>>>>> 休息 {} ms", millis);
        ThreadUtil.sleep(millis);
        StrUtil.isEmpty("adsfasdf");
    }

    public long fibonacci(int n) {
        if (n == 0 || n == 1) {
            return 1L;
        }
        return fibonacci(n - 1) + fibonacci(n - 2);
    }
}
